package com.wangbl.infomanager.http;

import com.tangye.android.http.Request;

public class Http extends Request<Response> {

	public static final boolean isDebug = true;
	public static final String TAG = "Http";
	public static String BASE_URL = "http://irmsma.ruc.edu.cn";

	public Http(String url, boolean isGet) {
		super(BASE_URL + url, isGet);
	}
	
	public Http(String url){
		super(url,true);
	}

	public Thread asyncRequest(ResponseListener<Response> rl) {
		return asyncRequest(rl, 0, null);
	}
	
	public Thread asyncRequest(int reqId,ResponseListener<Response> rl){
		return asyncRequest(rl, reqId, null);
	}

	@Override
	protected Response parse(String content) throws ParseException {
		Response resp = new Response(content);
		return resp;
	}

}
